package com.ruoyi.coupon.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 优惠券对象 t_coupon
 * 
 * @author shiroko
 * @date 2025-03-25
 */
public class TCoupon extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 优惠券ID */
    private Long id;

    /** 发放开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发放开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date issueStartTime;

    /** 发放结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发放结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date issueEndTime;

    /** 有效期 */
    @Excel(name = "有效期")
    private Long validityPeriod;

    /** 优惠金额 */
    @Excel(name = "优惠金额")
    private BigDecimal discountAmount;

    /** 消费门槛 */
    @Excel(name = "消费门槛")
    private BigDecimal consumptionThreshold;

    /** 发放数量 */
    @Excel(name = "发放数量")
    private Long issueQuantity;

    /** 上下架状态 */
    @Excel(name = "上下架状态")
    private Long status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setIssueStartTime(Date issueStartTime) 
    {
        this.issueStartTime = issueStartTime;
    }

    public Date getIssueStartTime() 
    {
        return issueStartTime;
    }
    public void setIssueEndTime(Date issueEndTime) 
    {
        this.issueEndTime = issueEndTime;
    }

    public Date getIssueEndTime() 
    {
        return issueEndTime;
    }
    public void setValidityPeriod(Long validityPeriod) 
    {
        this.validityPeriod = validityPeriod;
    }

    public Long getValidityPeriod() 
    {
        return validityPeriod;
    }
    public void setDiscountAmount(BigDecimal discountAmount) 
    {
        this.discountAmount = discountAmount;
    }

    public BigDecimal getDiscountAmount() 
    {
        return discountAmount;
    }
    public void setConsumptionThreshold(BigDecimal consumptionThreshold) 
    {
        this.consumptionThreshold = consumptionThreshold;
    }

    public BigDecimal getConsumptionThreshold() 
    {
        return consumptionThreshold;
    }
    public void setIssueQuantity(Long issueQuantity) 
    {
        this.issueQuantity = issueQuantity;
    }

    public Long getIssueQuantity() 
    {
        return issueQuantity;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("issueStartTime", getIssueStartTime())
            .append("issueEndTime", getIssueEndTime())
            .append("validityPeriod", getValidityPeriod())
            .append("discountAmount", getDiscountAmount())
            .append("consumptionThreshold", getConsumptionThreshold())
            .append("issueQuantity", getIssueQuantity())
            .append("status", getStatus())
            .toString();
    }
}
